fundamental spaces of a matrix